<?php
include_once('common/header.php');
if($AppUI->id <= 0) {
	$this->_redirect(HOST_VFRIEND);
}
$objVfriendUser		= new Vfriend_User();
$strPassword		= $objRequest->getParam('password', '');
$strDbPassword		= $objVfriendUser->getPassword($AppUI->email);
$strChapPassword	= md5(md5(session_id()) . $strDbPassword);	
if($strPassword == $strChapPassword) {	
	echo 1;
}
else {
	echo 0;
}
exit();
?>